package fox.framework.rpc.client.message.response;

import java.util.Collection;

/**
 * @author cuichao
 * @Description: RpcClientResponseWrapper
 * @Date: create in 2021/1/25 16:22
 */
public class RpcClientResponseWrapper implements RpcClientResponse {

    private RpcClientResponse _response;


    public RpcClientResponseWrapper(RpcClientResponse response) {
        this._response = response;
    }

    @Override
    public String getProtocol() {
        return _response.getProtocol();
    }

    @Override
    public int getStatus() {
        return _response.getStatus();
    }

    @Override
    public ResponseEntity getEntity() {
        return _response.getEntity();
    }

    @Override
    public String getHeader(String name) {
        return _response.getHeader(name);
    }

    @Override
    public int getContentLength() {
        return _response.getContentLength();
    }

    @Override
    public String getContentType() {
        return _response.getContentType();
    }

    @Override
    public Collection<String> getHeaderNames() {
        return _response.getHeaderNames();
    }

    public RpcClientResponse getResponse(){
        return _response;
    }


}
